﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
namespace Web_cuiki
{
    public partial class DanhSachHoaDonAdmin : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (System.Web.Security.Membership.GetUser() == null)
            {
                this.Response.Redirect("Login.aspx");
            }
            if (Roles.GetRolesForUser(Membership.GetUser().UserName).First()!= "Admin")
            {
                this.Response.Redirect("Login.aspx");
            }
        }
    }
}